PICTools Programmer's Reference
PIC2List JBIG2 Comment Packet Functions

The P2PktJBIG2Comment structure is defined as:

 
Copy Code
typedef struct {
   BYTE     Type;
   DWORD    Length;
   DWORD    PageNum;  
   DWORD    ValueOfs;
   BYTE     CharSet;
   char     NameThenValue[1];
} P2PktJBIG2Comment;

P2LAddJBIG2Comment

 
Copy Code

P2PktJBIG2Comment* P2LAddJBIG2Comment(P2LIST* p2l, DWORD PageNum, DWORD SegNum, BYTE CharSet, DWORD NumNameBytes, const BYTE* Name, DWORD NumValueBytes, const BYTE* Value)

Add a JBIG2Comment PIC2List packet with Name and Value. Name has length NumNameBytes bytes. Value has length NumValueBytes bytes.If NumNameBytes is zero, then Name must be null-terminated and its length will be determined.

If NumValueBytes is zero, then Value must be null-terminated and its length will be determined. If Name is zero and NumNameBytes is nonzero, then space is allocated and zero-filled. If Value is zero and NumValueBytes is nonzero, then space is allocated and zero-filled.

CharSet is either P2JBIG2Com_8bitchars (ANSI, ISO/IEC 8859) or P2JBIG2Com_16bitchars (UNICODE, ISO/IEC 10646 UCS-2)

P2LFindJBIG2Comment

 
Copy Code

P2PktJBIG2Comment* P2LFindJBIG2Comment (const P2LIST* p2l, DWORD PageNum, DWORD SegNum)

P2LFindJBIG2Comment returns a pointer to the first JBIG2Comment for page PageNum. 

P2LFindNextJBIG2Comment

 
Copy Code

P2PktJBIG2Comment* P2LFindNextJBIG2Comment (const P2LIST* p2l, const P2PktJBIG2Comment* pkt)

P2LFindNextJBIG2Comment returns a pointer to the next JBIG2 comment for page PageNum and following pkt. 

 

 


©2022. Accusoft Corporation. All Rights Reserved.

Send Feedback